projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9073056
)
Magellan files that don't have $ in column zero now rejected instead of crashing.
author
robertl
<robertl>
Tue, 19 Dec 2006 19:15:02 +0000
(19:15 +0000)
committer
robertl
<robertl>
Tue, 19 Dec 2006 19:15:02 +0000
(19:15 +0000)
magproto.c
patch
|
blob
|
history
diff --git
a/magproto.c
b/magproto.c
index c23a529a7b55c0c38d02f07786bb481061783c13..c5c0f75950e97fe1183add6c0f8a279ac1adc259 100644
(file)
--- a/
magproto.c
+++ b/
magproto.c
@@
-425,6
+425,12
@@
retry:
}
}
+ /* If column zero isn't a dollar sign, it's not for us */
+ if (ibuf[0] != '$') {
+ fatal(MYNAME ": line doesn't start with '$'.\n");
+ }
+
+
isz = strlen(ibuf);
if (isz < 5) {